﻿using DoNetDrive.Core.Command;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace _8280WEBSocket.Command.Record
{
    public class GetRecord : Json.JsonCommand
    {
        public GetRecord(INCommandDetail cd, Models.RecordType type, int readSize = 100) : base(cd, null)
        {
            if (readSize > 100) readSize = 100;
            Reply = "GetRecord";
            mSendObject = new { cmd = Reply, recordType = type.ToString(), readSize };
            mJsonResult = (s) => _Result = new GetRecordResult(type, s);
        }
    }
}
